package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:05
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class Student implements java.io.Serializable {
    
    public Student() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private String studentName;	
	
	/**
	 * Attribute studentName Be Seted Falg
	 */
	private boolean studentNameSetted = false;
	
		/**
	 * Attribute studentName is Null Falg
	 */
	private boolean studentNameNull = false;
	
	   
    /**
	 * Get studentName
	 * 
	 * @return String
	 */
	final public String getStudentName(){
	    
				
		if(isStudentNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(studentName);
		}
				
	}
	
	/**
	 * Set studentName
	 * 
	 * @param String
	 */
	final public void setStudentName(String studentName ){
		
				
		this.studentName = StringUtils.trim(studentName);
				
		this.studentNameSetted = true;
		
				
				
		this.setStudentNameNull(this.studentName == null);
				
				
	}
	
	/**
	 * Get studentName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStudentNameSetted(){
		return this.studentNameSetted;
	}
	
		
	/**
	 * Set studentName Null
	 * 
	 */
	final public void setStudentNameNull(){
			
		this.studentNameNull = true;
		
	}	
	
	final public void setStudentNameNull(boolean aNullFlag){
			
		this.studentNameNull = aNullFlag;
		
	}	
	
	final public boolean isStudentNameNull(){
			
		return this.studentNameNull;
		
	}
	
    	
	   
		
		
		
	private String studentGender;	
	
	/**
	 * Attribute studentGender Be Seted Falg
	 */
	private boolean studentGenderSetted = false;
	
		/**
	 * Attribute studentGender is Null Falg
	 */
	private boolean studentGenderNull = false;
	
	   
    /**
	 * Get studentGender
	 * 
	 * @return String
	 */
	final public String getStudentGender(){
	    
				
		if(isStudentGenderNull()){
			return null;
		}
		else{
			return StringUtils.trim(studentGender);
		}
				
	}
	
	/**
	 * Set studentGender
	 * 
	 * @param String
	 */
	final public void setStudentGender(String studentGender ){
		
				
		this.studentGender = StringUtils.trim(studentGender);
				
		this.studentGenderSetted = true;
		
				
				
		this.setStudentGenderNull(this.studentGender == null);
				
				
	}
	
	/**
	 * Get studentGender Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStudentGenderSetted(){
		return this.studentGenderSetted;
	}
	
		
	/**
	 * Set studentGender Null
	 * 
	 */
	final public void setStudentGenderNull(){
			
		this.studentGenderNull = true;
		
	}	
	
	final public void setStudentGenderNull(boolean aNullFlag){
			
		this.studentGenderNull = aNullFlag;
		
	}	
	
	final public boolean isStudentGenderNull(){
			
		return this.studentGenderNull;
		
	}
	
    	
	   
		
		
		
	private String contactsPhone;	
	
	/**
	 * Attribute contactsPhone Be Seted Falg
	 */
	private boolean contactsPhoneSetted = false;
	
		/**
	 * Attribute contactsPhone is Null Falg
	 */
	private boolean contactsPhoneNull = false;
	
	   
    /**
	 * Get contactsPhone
	 * 
	 * @return String
	 */
	final public String getContactsPhone(){
	    
				
		if(isContactsPhoneNull()){
			return null;
		}
		else{
			return StringUtils.trim(contactsPhone);
		}
				
	}
	
	/**
	 * Set contactsPhone
	 * 
	 * @param String
	 */
	final public void setContactsPhone(String contactsPhone ){
		
				
		this.contactsPhone = StringUtils.trim(contactsPhone);
				
		this.contactsPhoneSetted = true;
		
				
				
		this.setContactsPhoneNull(this.contactsPhone == null);
				
				
	}
	
	/**
	 * Get contactsPhone Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isContactsPhoneSetted(){
		return this.contactsPhoneSetted;
	}
	
		
	/**
	 * Set contactsPhone Null
	 * 
	 */
	final public void setContactsPhoneNull(){
			
		this.contactsPhoneNull = true;
		
	}	
	
	final public void setContactsPhoneNull(boolean aNullFlag){
			
		this.contactsPhoneNull = aNullFlag;
		
	}	
	
	final public boolean isContactsPhoneNull(){
			
		return this.contactsPhoneNull;
		
	}
	
    	
	   
		
		
		
	private String contactsRelation;	
	
	/**
	 * Attribute contactsRelation Be Seted Falg
	 */
	private boolean contactsRelationSetted = false;
	
		/**
	 * Attribute contactsRelation is Null Falg
	 */
	private boolean contactsRelationNull = false;
	
	   
    /**
	 * Get contactsRelation
	 * 
	 * @return String
	 */
	final public String getContactsRelation(){
	    
				
		if(isContactsRelationNull()){
			return null;
		}
		else{
			return StringUtils.trim(contactsRelation);
		}
				
	}
	
	/**
	 * Set contactsRelation
	 * 
	 * @param String
	 */
	final public void setContactsRelation(String contactsRelation ){
		
				
		this.contactsRelation = StringUtils.trim(contactsRelation);
				
		this.contactsRelationSetted = true;
		
				
				
		this.setContactsRelationNull(this.contactsRelation == null);
				
				
	}
	
	/**
	 * Get contactsRelation Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isContactsRelationSetted(){
		return this.contactsRelationSetted;
	}
	
		
	/**
	 * Set contactsRelation Null
	 * 
	 */
	final public void setContactsRelationNull(){
			
		this.contactsRelationNull = true;
		
	}	
	
	final public void setContactsRelationNull(boolean aNullFlag){
			
		this.contactsRelationNull = aNullFlag;
		
	}	
	
	final public boolean isContactsRelationNull(){
			
		return this.contactsRelationNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
	private java.util.Date studentBirthday;	
	
	/**
	 * Attribute studentBirthday Be Seted Falg
	 */
	private boolean studentBirthdaySetted = false;
	
		/**
	 * Attribute studentBirthday is Null Falg
	 */
	private boolean studentBirthdayNull = false;
	
	   
    /**
	 * Get studentBirthday
	 * 
	 * @return java.util.Date
	 */
	final public java.util.Date getStudentBirthday(){
	    
				
		return studentBirthday;
				
	}
	
	/**
	 * Set studentBirthday
	 * 
	 * @param java.util.Date
	 */
	final public void setStudentBirthday(java.util.Date studentBirthday ){
		
				
		this.studentBirthday = studentBirthday;
				
		this.studentBirthdaySetted = true;
		
				
				
		this.setStudentBirthdayNull(this.studentBirthday == null);
				
				
	}
	
	/**
	 * Get studentBirthday Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStudentBirthdaySetted(){
		return this.studentBirthdaySetted;
	}
	
		
	/**
	 * Set studentBirthday Null
	 * 
	 */
	final public void setStudentBirthdayNull(){
			
		this.studentBirthdayNull = true;
		
	}	
	
	final public void setStudentBirthdayNull(boolean aNullFlag){
			
		this.studentBirthdayNull = aNullFlag;
		
	}	
	
	final public boolean isStudentBirthdayNull(){
			
		return this.studentBirthdayNull;
		
	}
	
    	
	   
		
		
		
	private String contactsName;	
	
	/**
	 * Attribute contactsName Be Seted Falg
	 */
	private boolean contactsNameSetted = false;
	
		/**
	 * Attribute contactsName is Null Falg
	 */
	private boolean contactsNameNull = false;
	
	   
    /**
	 * Get contactsName
	 * 
	 * @return String
	 */
	final public String getContactsName(){
	    
				
		if(isContactsNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(contactsName);
		}
				
	}
	
	/**
	 * Set contactsName
	 * 
	 * @param String
	 */
	final public void setContactsName(String contactsName ){
		
				
		this.contactsName = StringUtils.trim(contactsName);
				
		this.contactsNameSetted = true;
		
				
				
		this.setContactsNameNull(this.contactsName == null);
				
				
	}
	
	/**
	 * Get contactsName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isContactsNameSetted(){
		return this.contactsNameSetted;
	}
	
		
	/**
	 * Set contactsName Null
	 * 
	 */
	final public void setContactsNameNull(){
			
		this.contactsNameNull = true;
		
	}	
	
	final public void setContactsNameNull(boolean aNullFlag){
			
		this.contactsNameNull = aNullFlag;
		
	}	
	
	final public boolean isContactsNameNull(){
			
		return this.contactsNameNull;
		
	}
	
    	
	   
		
		
		
	private int deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	final public int getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param int
	 */
	final public void setDeleteFlag(int deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof Student) == false){
			return false;
		}
		Student other = (Student) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("studentName=");
		buffer.append(this.studentName);
		        
		buffer.append("studentGender=");
		buffer.append(this.studentGender);
		        
		buffer.append("contactsPhone=");
		buffer.append(this.contactsPhone);
		        
		buffer.append("contactsRelation=");
		buffer.append(this.contactsRelation);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
		        
		buffer.append("studentBirthday=");
		buffer.append(this.studentBirthday);
		        
		buffer.append("contactsName=");
		buffer.append(this.contactsName);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}